package com.xc.content.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.servlet.ModelAndView;

import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Controller
@Slf4j
@AllArgsConstructor
@Api(tags = "课程发布控制类")
public class CoursePublishController {
    @GetMapping("/coursepreview/{courseId}")
    public ModelAndView coursepreview(@PathVariable("courseId") Long courseId) {
        log.info("课程发布预览：{}",courseId);
        ModelAndView modelAndView = new ModelAndView();
        //设置模型数据
       // modelAndView.addObject("name", "小明");
        //设置模板名称/**/
        modelAndView.setViewName("course_template");
        return modelAndView;
    }

}
